package com.lz.base.project.thread;

import cn.hutool.core.date.StopWatch;
import com.lz.base.common.utils.http.OkHttpUtil;
import com.lz.base.common.utils.http.SstInf;

public class Common {

    public static void main(String[] args) {

        SstInf sstInf = new SstInf();
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();

        sstInf.setInfFullUrl("https://query.asilu.com/weather/baidu");
        sstInf.setInfRequest("{city: 济宁}");
        String s = OkHttpUtil.requestGet(sstInf);
        System.out.println("济宁:" + s);


        sstInf.setInfFullUrl("https://query.asilu.com/weather/baidu");
        sstInf.setInfRequest("{city: 砀山}");
        s = OkHttpUtil.requestGet(sstInf);
        System.out.println("砀山:" + s);


        sstInf.setInfFullUrl("https://query.asilu.com/weather/baidu");
        sstInf.setInfRequest("{city: 杭州}");
        s = OkHttpUtil.requestGet(sstInf);
        System.out.println("杭州:" + s);


        sstInf.setInfFullUrl("https://query.asilu.com/weather/baidu");
        sstInf.setInfRequest("{city: 上海}");
        s = OkHttpUtil.requestGet(sstInf);
        System.out.println("上海:" + s);

        stopWatch.stop();
        System.out.println("总耗时：" + stopWatch.getTotalTimeMillis());
    }
}
